package com.baseweb.webadmin.core.model.dao;

import com.baseweb.webadmin.core.model.bvo.RoleRescBvo;
import com.baseweb.webadmin.core.model.pojo.Resc;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * Date: 11-3-8
 * Time: 下午2:45
 * To change this template use File | Settings | File Templates.
 */
public interface RoleRescDao {
    public List<RoleRescBvo> selectRnameAndRes();

    public List<Resc> selectRescs();

    public Resc selectRescByNameAndResString(Resc resc);

    public List<Resc> getRescByUserId(Long id);


    /**
     * 获取角色拥有的资源
     *
     * @param id
     * @return
     */
    List<Resc> getRescByRole(Integer id);
}
